<?php

global  $_GPC,$_W;
$id = $_GPC['id'];


require_once dirname(__FILE__)."/../model/user.php";
require_once dirname(__FILE__)."/../model/api.php";
if(!isUser()){
    $url =$this->createMobileUrl('login');
    header("location: $url");
    setJumpUrl();
    die();
}
$user= getUser();


$request = postCurl(getServer()."/doExcellentLove",array(
    "curmemberid"=>$user['id'],
    "excellentid"=>$id,

));



if ($request["ret"]==0){
    echo json_encode(array('status'=>true,'result'=>$request["data"]),true);
}else{
    echo json_encode(array('status'=>false,'result'=>$request["msg"]),true);
}